require("../../../../@babel/runtime/helpers/Arrayincludes"), Component({
    properties: {
        list: {
            type: Array,
            value: []
        },
        show: {
            type: Boolean,
            value: !1
        },
        tempRightIndex: {
            type: Number,
            value: -1
        }
    },
    observers: {
        list: function(t) {
            this.setData({
                showList: this.data.showMore ? t : t.slice(0, 8)
            });
        }
    },
    data: {
        showMore: !1,
        showList: []
    },
    methods: {
        onClose: function() {
            this.setData({
                show: !1
            });
        },
        hasDetailTxt: function(t) {
            return t.includes("美团") || t.includes("星巴克");
        },
        onChooseRights: function(t) {
            t.currentTarget.dataset.item.exhausted || this.triggerEvent("onChooseRights", t.currentTarget.dataset.index);
        },
        onConfirmRights: function() {
            this.triggerEvent("onConfirmRights");
        },
        clickMore: function() {
            this.setData({
                showMore: !0,
                showList: this.data.list
            });
        }
    }
});